import {
  BaseModel
} from 'base.js';
import {
  HTTP
}
  from '../utils/http.js'

class ResumeModel extends BaseModel {
  store(data) {
    return this.request({
      url: '/api/resume/store',
      method: 'POST',
      data: data
    })
  }
  update(id,data) {
    return this.request({
      url: `/api/resume/update/${id}`,
      method: 'put',
      data: data
    })
  }
  getMine(status){
    return this.request({
      url: `/api/resume/mine/${status}`,
    })
  }
  show(id) {
    return this.request({
      url: `/api/resume/show/${id}`,
    })
  }
  reason(id) {
    return this.request({
      url: `/api/resume/reason/${id}`,
    })
  }
  explain() {
    return this.request({
      url: `/api/resume/explain`,
    })
  }
  worker() {
    return this.request({
      url: `/api/resume/worker`,
    })
  }
   getCate() {
    return this.request({
      url: `/api/resume/cate`,
    })
  }  
  getArticles(id){
    return this.request({
      url: `/api/resume/articles/${id}`,
    })
  }
  getArticleList(id,page=1) {
    return this.request({
      url: `/api/resume/articleList/${id}?page=${page}`,
    })
  }
   getDetail(id,type=1) {
    return this.request({
      url: `/api/resume/detail/${id}/${type}`,
    })
  }
}
export {
  ResumeModel
}